vsim -t us  Fietscomputer_lib.meten(v1) 

view wave
delete wave *


add wave -unsigned reed clk reed_sync(1) reed_sync(0) timer0 timer1 state deltaT rdy_en deltaT_strobe timer2 time_out




force clk  0, 1 50 -rep 100
force rst  0, 1 10, 0 20

force reed 1
run 40 ms

run 13 sec

force reed 0
run 13 sec

force reed 1
run 13 sec


force reed 0, 1 1500 us, 0 2000 us , 1 2500 us, 0 3000 us,  1 10000 us, 0 11500 us, 1 12000 us, 0 12500 us, 1 13000 us
run 25 ms

force reed 0, 1 1500 us, 0 2000 us , 1 2500 us, 0 3000 us,  1 10000 us, 0 11500 us, 1 12000 us, 0 12500 us, 1 13000 us
run 5000 ms

force reed 0, 1 1500 us, 0 2000 us , 1 2500 us, 0 3000 us,  1 10000 us, 0 11500 us, 1 12000 us, 0 12500 us, 1 13000 us
run 5000100 us

force reed 0, 1 1500 us, 0 2000 us , 1 2500 us, 0 3000 us,  1 10000 us, 0 11500 us, 1 12000 us, 0 12500 us, 1 13000 us
run 250 ms

force reed 0, 1 1500 us, 0 2000 us , 1 2500 us, 0 3000 us,  1 10000 us, 0 11500 us, 1 12000 us, 0 12500 us, 1 13000 us
run 9 sec

force reed 0, 1 1500 us, 0 2000 us , 1 2500 us, 0 3000 us,  1 10000 us, 0 11500 us, 1 12000 us, 0 12500 us, 1 13000 us
run 25 ms

force reed 0, 1 1500 us, 0 2000 us , 1 2500 us, 0 3000 us,  1 10000 us, 0 11500 us, 1 12000 us, 0 12500 us, 1 13000 us
run 25 ms